using System;
using System.Collections.Generic;
using System.Linq;
using System.Xml.Linq;

namespace BattleTech.Models
{
	public class WeaponDefinition : EquipmentDefinition
	{

		public int? MinRange
		{
			get { return Get<int?>("MinRange"); }
		}

		public int ShortRange
		{
			get { return Get<int>("ShortRange"); }
		}

		public int MediumRange
		{
			get { return Get<int>("MediumRange"); }
		}

		public int LongRange
		{
			get { return Get<int>("LongRange"); }
		}

		public int Heat
		{
			get { return Get<int>("Heat"); }
		}

		public string Damage
		{
			get { return Get<string>("Damage"); }
		}

		public int? Ammo
		{
			get { return Get<int?>("Ammo"); }
		}

		public WeaponDefinition(XElement node)
		{
			base.Load(node.Attributes());
		}
	}
}
